package router

import (
	"github.com/gin-gonic/gin"
	v1 "guns-go/controller/v1"
)

func InitSysAppRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	AppRouter := Router.Group("sysApp")
	{
		AppRouter.POST("add", v1.AppAdd)
		AppRouter.POST("edit", v1.AppEdit)
		AppRouter.POST("delete", v1.AppDelete)
		AppRouter.GET("page", v1.AppPage)
		AppRouter.POST("setAsDefault", v1.SetAsDefault)
		AppRouter.GET("list", v1.AppList)
	}
	return AppRouter
}
